<!-- 在表单中使用popover效果展示文件上传控件 -->
<template>
  <el-popover
    placement="top"
    width="320"
    trigger="hover">
    <el-upload
      :on-exceed="handleExceed"
      :on-remove="handleRemove"
      :before-remove="beforeRemove"
      :on-success="handleSuccess"
      :on-error="handelError"
      :file-list="fileList"
      list-type="text"
      v-bind="fld"
      ref="elupload"
      size="mini">
      <el-button type="primary" size="mini">{{fld.title}}</el-button>
    </el-upload>
    <el-button slot="reference" size="mini" @click="handleClick">{{textButton}}</el-button>
  </el-popover>
</template>
<script>
define(['vue','_vue!pathComponent/comp-image-popover'],function(vue,compImage){
  return vue.component('comp-file-popover',{
    extends: compImage,
    template: template,
    data:function(){      
      return {        
      };
    }, 
    methods:{
    }
  });  
});
</script>